Skip to content

Midnight Ops: rebuilt from scratch, now a campaign with two missions - #339

Merged
ngcoding10 merged 8 commits into
mainfrom
claude/gifted-albattani-557kuw
Nov 27, 2026
Merged

ngcoding10 merged 8 commits into
mainfrom
claude/gifted-albattani-557kuw

Conversation

@ngcoding10

Copy link
Copy Markdown
Collaborator
  • Midnight Ops (admin preview only) is rebuilt from scratch. Every model, texture and sound is now made in code when the page opens; there are no model, image or sound files.
  • What it looks like now: night, rain, wet cobbles with mirrored puddles, a storm sky, and a detailed Thompson held in gloved hands. Soldiers are rebuilt with helmets, caps, kit and proper rifle poses.
  • It is now a campaign. The title screen has a Missions list.
    • Mission 1, Night Drop: spike three flak guns in a Norman hamlet.
    • Mission 2, The Radio Mast: silence a transmitter and topple a 32 m mast in a fenced compound before an artillery clock runs out. There is a sweeping searchlight, and an optional generator that turns the lights off.
    • Missions 3 to 5 are listed as "Coming soon".
  • Phones: touch controls, laid out for portrait and sideways.
  • Language: English and Spanish throughout.
  • School laptops:
    • Low quality draws about 310k triangles at the start view instead of 440k.
    • The level is split into chunks so what is behind you isn't drawn.
    • Point lights per pixel went from 10–13 to 6.
  • Pages affected:
    • e63334287a3deaa3/ironveil/: the game itself, still behind the admin page's preview button.
    • README.md and .claude/agents/midnight-ops.md.
    • A note in lib/three/README.md and .claude/skills/war-game-series/SKILL.md.
    • No other page changes.

Risky, please look:

  • Deleted content: the old game's scripts, model files (*.glb), test pages, Blender tools and credits files under ironveil/ (about 106 files; all still in git history).
  • Kept for Ironwing: env/core.js, env/post.js, env/texgen.js, env/scans/, CREDITS-env.md and assets/lib/meshopt_decoder.js stay because Ironwing loads them. I checked Ironwing still loads with no errors.
  • Saved data changes: localStorage ironveil:save is now {v: 2, settings, missions, last}.
    • An old v1 save keeps only look speed and the blood setting; old mission progress doesn't carry over, because those missions no longer exist.
    • Key rebinding (keybinds:ironveil) is gone.
  • None of these files change: workflows, _redirects, functions/, account/, ads, Firebase config, sitemap.xml. The game uses no Firebase.
  • Saltline: the approach follows the techniques documented for the game Saltline. None of Saltline's code is used, because it has no licence.
  • No What's new entry: players can't see the game yet (admin preview only). Label this no-news if you agree.

How it was tested:

  • Chromium (software WebGL) at 1280×720, 960×540, phone portrait (390×844) and phone sideways (844×390), all with touch on.
  • Automated runs of both missions end to end: plant, blast, reinforcements, death and retry from checkpoint, completion, save, next mission.
  • Mission 2's artillery clock running out, and the searchlight spotting the player.
  • No console errors in any run.

Not tested:

  • Frame rate on a real school laptop.
  • The synthesised sound: nobody has listened to it.
  • Mouse capture with a real mouse.

Generated by Claude Code

- New engine on a window.MO namespace: part-list geometry merged per material,
  textures baked on the graphics card, HDR render with bloom and tone mapping,
  wet ground with a mirrored reflection, a separate camera for the gun,
  effects on fixed budgets, synthesised sound and music.
- Mission 1, Night Drop: a Norman hamlet at night in the rain; spike three flak
  guns, survive the reinforcements, reach the rally point. Checkpoint after
  each gun, graded debrief, English and Spanish, touch controls.
- The old game's scripts, model files, test pages and Blender tools are removed.
  env/core.js, env/post.js, env/texgen.js, env/scans and meshopt_decoder.js stay
  because Ironwing loads them.
- Save format is now v2; a v1 save keeps only look speed and the blood setting.
- The approach follows the techniques documented for the game Saltline; none of
  its code is used.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Cw2rM7HP4RvtJycwLW1jZr
- The level is split into 40 m chunks so what is behind the camera is skipped;
  one merged, invisible copy of the level draws the moon's shadow in one call.
- Point lights are a fixed pool (4 on low, 6 medium, 8 high) that moves to the
  lamps nearest the player, plus 2 or 3 flash lights.
- Low quality uses plain capstones, coarser tree blobs and half the leaf cards
  (main pass at the start view: 440k to 310k triangles).
- Hedge leaves are less glossy so they no longer catch the moon as white specks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Cw2rM7HP4RvtJycwLW1jZr
- Stone walls are irregular rubble with wide mortar instead of tidy blocks.
- Chipped paint on shutters and trucks is small flakes, not shutter-sized patches.
- During a reload the gun tips up and in, underside toward you, so both hands
  and the magazine stay in view; the crosshair hides while reloading.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Cw2rM7HP4RvtJycwLW1jZr
- Missions are now files in js/maps/ that register with js/missions.js: map,
  soldiers, targets, radio lines and script hooks. js/level.js and
  js/mission.js are shared by every mission (planting, fuses, checkpoints,
  the way out, failing, the debrief, saving per mission).
- The title has a Missions list (done, locked, coming soon); the debrief offers
  the next mission. Choosing another mission reloads the page with ?m=<id>.
- Mission 2, The Radio Mast: a fenced signals compound in the woods with three
  ways in (gate, ditch, broken fence). Silence the transmitter in the bunker,
  bring down the 32 m mast (it topples), optionally blow the generator to kill
  the floodlights and the sweeping searchlight. Once they know you are there
  the radio calls the guns: 2:30, then a barrage.
- Wire fences stop you but not bullets or eyes; compass labels no longer overlap;
  the gun no longer turns white facing the moon; a negative time step after
  test stepping is clamped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Cw2rM7HP4RvtJycwLW1jZr
- Soldiers rebuilt in code: flared steel helmet (rifleman) or soft field cap
  (sergeant), a face under the brim in a muted night skin tone, tapered tunic
  with a skirt, belt kit, Y-straps, boots; a full bolt-action rifle or a
  submachine gun. Under 4,000 triangles each.
- Poses: hands are placed on the weapon by a small two-bone solver; idle at low
  ready, walk and run with planted feet, shouldered aim with the cheek on the
  stock, kneeling, flinch, and a fall onto the back with the weapon dropped.
- Phones: the artillery clock and a long objective title no longer overlap the
  compass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Cw2rM7HP4RvtJycwLW1jZr
@netlify

netlify Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for cosmic-dasik-e73c56 ready!

Name Link
🔨 Latest commit 2904bfb
🔍 Latest deploy log https://app.netlify.com/projects/cosmic-dasik-e73c56/deploys/6b08df5b8e6b09d2356b309d
😎 Deploy Preview https://deploy-preview-339--cosmic-dasik-e73c56.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying ascoding11-github-io with  Cloudflare Pages  Cloudflare Pages

Latest commit: 2904bfb
Status: ✅  Deploy successful!
Preview URL: https://38186340.ascoding11-github-io.pages.dev
Branch Preview URL: https://claude-gifted-albattani-557k.ascoding11-github-io.pages.dev

View logs

@netlify

netlify Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for ascoding11 ready!

Name Link
🔨 Latest commit 2904bfb
🔍 Latest deploy log https://app.netlify.com/projects/ascoding11/deploys/6b08df5b3040f79fe3c96fab
😎 Deploy Preview https://deploy-preview-339--ascoding11.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@ngcoding10 ngcoding10 added the no-news label Nov 27, 2026 — with Claude
@ngcoding10
ngcoding10 merged commit 447102f into main Nov 27, 2026
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants